package hang.xipujewelWeb.repository.jpa;

import hang.xipujewelWeb.entity.app.Order;
import hang.xipujewelWeb.repository.JpaDao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

public interface OrderDao extends JpaDao<Order> {

	@Query("From Order where user.id=?1 order by submitTime desc")
	public List<Order> findAllByUser(Long userId);

}
